package com.bonuo.saas.service.impl;

import com.bonuo.saas.domain.DeviceMaintenance;
import com.bonuo.saas.mapper.DeviceMaintenanceMapper;
import com.bonuo.saas.service.DeviceMaintenanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeviceMaintenanceServiceImpl implements DeviceMaintenanceService {

    @Autowired
    private DeviceMaintenanceMapper deviceMaintenanceMapper;

    @Override
    public List<DeviceMaintenance> selectDeviceMaintenanceList(DeviceMaintenance deviceMaintenance) {
        return deviceMaintenanceMapper.selectDeviceMaintenanceList(deviceMaintenance);
    }

    @Override
    public Integer insertDeviceMaintenance(DeviceMaintenance deviceMaintenance) {
        return deviceMaintenanceMapper.insertDeviceMaintenance(deviceMaintenance);
    }

    @Override
    public Integer updateDeviceMaintenance(DeviceMaintenance deviceMaintenance) {
        return deviceMaintenanceMapper.updateDeviceMaintenance(deviceMaintenance);
    }

    @Override
    public Integer deleteDeviceMaintenanceById(Integer id) {
        return deviceMaintenanceMapper.deleteDeviceMaintenanceById(id);
    }
}
